/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author plato
 */
@XmlRootElement(name = "students")
@XmlAccessorType(XmlAccessType.FIELD)
public class StudentsJaxb {

    @XmlElement(name = "student")
    private List<StudentJaxb> listStudent;

    public StudentsJaxb() {
    }

    public StudentsJaxb(List<StudentJaxb> listStudent) {
        this.listStudent = listStudent;
    }

   
    public List<StudentJaxb> getListStudent() {
        return listStudent;
    }
//    // XmLElementWrapper generates a wrapper element around XML representation  
//    @XmlElementWrapper(name = "students")
//    // XmlElement sets the name of the entities in collection  
//    @XmlElement(name = "student")

    public void setListStudent(ArrayList<StudentJaxb> listStudent) {
        this.listStudent = listStudent;
    }
}
